package com.jcl.recruit.org.service;

import com.jcl.recruit.depart.logic.DepartmentLogic;
import com.jcl.recruit.org.model.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 刘明新
 * @date 2018/8/2 下午2:19
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentLogic departmentLogic;

    public List<Department> selectDepartmentListsBySupperIdAndCompanyIdAndKeyword(Integer superId, Integer subcompanyId, String keyword) {
        return departmentLogic.selectDepartmentListsBySupperIdAndCompanyIdAndKeyword(superId,subcompanyId,keyword);
    }

    public Department selectPrimarykeyById(Integer id) {
        return departmentLogic.selectPrimarykeyById(id);
    }

    public List<Department> selectAllDepartmentsBySubaccountId(Integer superId,Integer subcompanyId) {
        return departmentLogic.selectAllDepartmentsBySubaccountId(superId,subcompanyId);
    }
}
